package com.yunyan.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

// 一分一档数据
@Data
@TableName("ranks")
public class RankData {


    @ExcelIgnore
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    @ExcelProperty(index = 0)
    // 分数档次
    private String score;

    @ExcelProperty(index = 1)
    // 物理人数
    private String phyNumber;

    @ExcelProperty(index = 2)
    // 累计人数
    private String phyTotalNumber;

    @ExcelProperty(index = 3)
    // 历史人数
    private String hisNumber;

    @ExcelProperty(index = 4)
    // 历史累计人数
    private String hisTotalNumber;

    // 年份
    @ExcelIgnore
    @TableField(value = "`year`")
    private Integer year;


}
